package com.monster.consumer;

import com.lmax.disruptor.EventHandler;
import com.monster.event.LongEvent;

/**
 * description:
 *
 * @author Yuanml on 2021/4/13 19:55
 */
public class ApplicationConsumer implements EventHandler<LongEvent> {
    @Override
    public void onEvent(LongEvent longEvent, long l, boolean b) throws Exception {
        System.out.println(Thread.currentThread().getName() + " Application Event: " + longEvent.getValue());
    }
}
